﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HangerSupport
{
	public class PipeSelectionFilterNoVerPipe : ISelectionFilter
	{
		public bool AllowElement(Element element)
		{
			bool flag = PipeSelectionFilter.IsPipeDuct(element);
			bool result;
			if (flag)
			{
				bool flag2 = Utils.IsVerticalPipe(element);
				result = !flag2;
			}
			else
			{
				result = false;
			}
			return result;
		}

		public bool AllowReference(Reference refer, XYZ point)
		{
			return false;
		}

		private bool m_bSelectOnlyHorPipe = true;
	}
}
